ifconfig eth0 192.168.255.9

echo "run script...."
outled 1
sleep 1
outled  2
sleep 1
outled  3
sleep 1
outled 3
sleep 1
outled 4
sleep 1
outled 5
sleep 1
outled 0
sleep 1
outled 5
sleep 1
outled  0

if [[ $# -gt 1 && $1 = "g" ]]; then

echo "run with G sensor version"

palert_g 192.168.255.1 192.168.255.5

else 

echo "run with p wave version"

palert 192.168.255.1 192.168.255.5




fi
